<div data-role="content">
<h1>Resum dels pagaments a sol·licitar</h1>
<?php $ii = 0; foreach( $_POST['emails'] as $email ) { ?>
&middot; <?php echo $email.': '.$_POST['sliders'][$ii].'€'; ?><br /><br />
<?php $ii++; } ?>
<form method="post" action="split.php">
<input type="hidden" name="subject" value="<?php echo $_POST['subject']; ?>" />
<input type="hidden" name="amount" value="<?php echo $_POST['amount']; ?>" />
    <?php $ii = 0; foreach( $_POST['sliders'] as $slider ) { ?>
    <input type="hidden" name="sliders[<?php echo $ii; ?>]" value="<?php echo $slider; ?>" />
    <?php $ii++; } ?>
    <?php $ii = 0; foreach( $_POST['emails'] as $user ) { ?>
    <input type="hidden" name="emails[<?php echo $ii; ?>]" value="<?php echo $user; ?>" />
    <?php $ii++; } ?>
<input type="submit" data-role="button" data-theme="b" data-icon="check" data-iconpos="right" value="Sol·licitar pagaments" />
</form>
</div>